<?php
/*************************************************************************************
   Copyright notice

   This script uses some code parts of the glossary module for phpwcms (c) Oliver Georgi
   (c) 2002-2009 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.

   This script uses some code parts from bmcatalog module
   (c) 2010 Benjamin Matzmorr, www.etype.de

   (c) 2012 webrealisierung gmbh, www.webrealisierung.ch
   Catalogue Module V 1.0.0  -  Date: 2012-06-01

   The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
   A copy is found in the textfile GPL.txt and important notices to the license
   from the author is found in LICENSE.txt distributed with these scripts.

   This script is distributed in the hope that it will be useful, but WITHOUT ANY
   WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   PARTICULAR PURPOSE.  See the GNU General Public License for more details.

   This copyright notice MUST APPEAR in all copies of the script!
*************************************************************************************/
// ----------------------------------------------------------------
// obligate check for phpwcms constants
if (!defined('PHPWCMS_ROOT')) {
   die("You Cannot Access This Script Directly, Have a Nice Day.");
}
// ----------------------------------------------------------------

//folder
$folder = PHPWCMS_ROOT.'/'.CONTENT_PATH.'rss/';
$artID = intval($_GET['art_id']);
$cpID = intval($_GET['cp_id']);
$filename	=  'feed-catalog-'.$artID.'-'.$cpID.'.xml';
$error = '';

  if (file_exists($folder.$filename)) {
    @unlink($folder.$filename);
    headerRedirect(decode_entities(ctg_map_url('controller=module')));
  } else {
  	$error = "File: ".$filename." not found.<br />";
?>

<div align="left" class="v10 error_message"><? echo $error;?></div>

<?php
	}
?>